-- GENERATED SPELL FOR [Plagued Peasant] --


function spell0_14485(pUnit, Event) --@Death\'s Door,Self--
pUnit:FullCastSpellOnTarget(23127,pUnit)
pUnit:RegisterEvent('Sorts_14485', 0, 1)
end

function Sorts_14485(pUnit, Event)
local choix_sorts_14485 = math.random(0, 0)
if choix_sorts_14485 == 0 then
pUnit:RegisterEvent('spell0_14485', 1, 1)
end
end

function mob14485_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_14485', math.random(1500, 3000), 1)
end

function mob14485_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob14485_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob14485_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(14485, 1, 'mob14485_Action')
RegisterUnitEvent(14485, 2, 'mob14485_Leave')
RegisterUnitEvent(14485, 3, 'mob14485_Kill')
RegisterUnitEvent(14485, 4, 'mob14485_Die')
